<div class="anuncios view">
<h2><?php echo __('Anuncio'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Titulo'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['titulo']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Descricao'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['descricao']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Inicio'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['inicio']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fim'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['fim']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Anunciante'); ?></dt>
		<dd>
			<?php echo $this->Html->link($anuncio['Anunciante']['nome'], array('controller' => 'anunciantes', 'action' => 'view', $anuncio['Anunciante']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Active'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['active']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User'); ?></dt>
		<dd>
			<?php echo $this->Html->link($anuncio['User']['username'], array('controller' => 'users', 'action' => 'view', $anuncio['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Destaque'); ?></dt>
		<dd>
			<?php echo h($anuncio['Anuncio']['destaque']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Animal'); ?></dt>
		<dd>
			<?php echo $this->Html->link($anuncio['Animal']['nome'], array('controller' => 'animals', 'action' => 'view', $anuncio['Animal']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Anuncio'), array('action' => 'edit', $anuncio['Anuncio']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Anuncio'), array('action' => 'delete', $anuncio['Anuncio']['id']), null, __('Are you sure you want to delete # %s?', $anuncio['Anuncio']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Anuncios'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Anuncio'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Anunciantes'), array('controller' => 'anunciantes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Anunciante'), array('controller' => 'anunciantes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Animals'), array('controller' => 'animals', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Animal'), array('controller' => 'animals', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Midias'), array('controller' => 'midias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Midia'), array('controller' => 'midias', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Midias'); ?></h3>
	<?php if (!empty($anuncio['Midia'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Arquivo'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($anuncio['Midia'] as $midia): ?>
		<tr>
			<td><?php echo $midia['id']; ?></td>
			<td><?php echo $midia['nome']; ?></td>
			<td><?php echo $midia['arquivo']; ?></td>
			<td><?php echo $midia['created']; ?></td>
			<td><?php echo $midia['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'midias', 'action' => 'view', $midia['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'midias', 'action' => 'edit', $midia['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'midias', 'action' => 'delete', $midia['id']), null, __('Are you sure you want to delete # %s?', $midia['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Midia'), array('controller' => 'midias', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
